<?php

namespace app\index\validate;

use think\Validate;


class Collection extends Validate
{
    protected $rule = [
        'uid' => 'require',
        'pid' => 'require',
       // 'modular' => 'require',
        'type' => 'require',
    ];
    protected $message = [
        'uid.require' => '用户ID获取失败',
        'pid.require' => '主体ID不能为空',
        'type.require' => '类型不能为空',
       // 'modular.require' => '评论模块不能为空',
    ];
}